package com.company.thread;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @description: some desc
 * @author: ruoan
 * @date: 2020/12/9 12:48
 */
public class ReentrantLockDemo {


    public static void main(String[] args) {
        final ReentrantLock lock = new ReentrantLock();
        lock.lock();
        try{
            System.out.println(lock);
        } finally {
            lock.unlock();
        }
    }
}
